package com.ugoodtech.mdcc.core.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;

@ApiModel("提交的基础报告")
@Entity
@Table(name = "audit_report")
public class AuditReport extends BaseEntity {

    @ApiModelProperty("创建报告人")
    private User user;

    @ApiModelProperty("报告类型")
    private String category;

    @ApiModelProperty("技术颜色报告审核")
    private String auditing;

    @ApiModelProperty("技术颜色报告审核不通过的原因")
    private String auditNote;

    @ApiModelProperty("补充信息的维修站ID")
    private Long temporaryStationId;

    @ApiModelProperty("补充信息的维修站")
    private Station station;

    @ApiModelProperty("是否重复提交")
    private boolean reAudit = false;

    @ApiModelProperty("是否是补充资料的维修站 默认为false")
    private boolean isSupplement = false;

    @ApiModelProperty("是否包含其他品牌")
    private boolean isOtherBrnad = false;

    @ApiModelProperty("用户身份")
    private Integer UserType;

    @ManyToOne
    @JoinColumn(name = "user_id")
    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Column(name = "category")
    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    @Column(name = "auditing")
    public String getAuditing() {
        return auditing;
    }

    public void setAuditing(String auditing) {
        this.auditing = auditing;
    }

    @Column(name = "audit_note")
    public String getAuditNote() {
        return auditNote;
    }

    public void setAuditNote(String auditNote) {
        this.auditNote = auditNote;
    }

    @Column(name = " temporary_station_id")
    public Long getTemporaryStationId() {
        return temporaryStationId;
    }

    public void setTemporaryStationId(Long temporaryStationId) {
        this.temporaryStationId = temporaryStationId;
    }

    @Column(name = "re_audit")
    public boolean isReAudit() {
        return reAudit;
    }

    public void setReAudit(boolean reAudit) {
        this.reAudit = reAudit;
    }

    @Column(name = "is_supplement")
    public boolean isSupplement() {
        return isSupplement;
    }

    public void setSupplement(boolean supplement) {
        isSupplement = supplement;
    }

    @ManyToOne
    @JoinColumn(name = "station_id")
    public Station getStation() {
        return station;
    }

    public void setStation(Station station) {
        this.station = station;
    }

    @Column(name = "is_other_brand")
    public boolean isOtherBrnad() {
        return isOtherBrnad;
    }

    public void setOtherBrnad(boolean otherBrnad) {
        isOtherBrnad = otherBrnad;
    }

    public Integer getUserType() {
        return UserType;
    }

    public void setUserType(Integer userType) {
        UserType = userType;
    }
}
